package com.small.nacos.common.task.engine;

import com.small.nacos.common.task.NacosRunnable;

/**
 * @Author zhoujin
 * @Date 2022/11/12 14:23
 */
public class ProcessRunnable extends NacosRunnable {

    private NacosTaskExecuteEngine executeEngine;

    public ProcessRunnable(NacosTaskExecuteEngine executeEngine) {
        this.executeEngine = executeEngine;
    }

    @Override
    protected void executeBody() {
        executeEngine.processTasks();
    }
}
